#include <stdio.h>
#include <curses.h>

/**
  * purpose: show how to use curses functions with a loop
  * outline: initialize, draw stuff, wrap up
  */

int main() {
	int i;
	initscr();							// turn on curses
	clear();							// clear the screen

	for (i = 0; i < LINES; i++) {
		move(i, i+1);
		if (i % 2 == 1) {
			standout();					// turn on standout mode
		}
		addstr("Hello, world");
		if (i % 2 == 1) {
			standend();					// turn off standout mode
		}
	}
	refresh();
	getch();
	endwin();
}
